#pragma once
#include <vector>

namespace MyStack
{
	template<class T>
	class Stack
	{
	public:
		void push(const T& t)
		{
			stack.push_back(t);
		}
	 	void pop()
		{
			stack.pop_back();
		}
	 	const T& top()
		{
			return stack.back();
		}
		bool empty()const
		{
			return stack.empty();
		}
		size_t size()const
		{
			return stack.size();
		}
	private:
		std::vector<T> stack;
	};
}
